<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ include file="/pages/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东工业大学招生办后台管理</title>
<script>
function check(){
	var content = document.getElementById("content");
	var tag=document.getElementById("tagselect");
	var quality=document.getElementById("quality");
	if(tag.checked)
	{
	quality.value="1";}
	else
	{
	quality.value="0";
	}
	if(content.value==""){
		alert("请输入内容！");
		return false;
	}
	else 
	return true;
	
}
</script>

</head>

<body>
	<div class="article">
		<form action="message-admin!save.action" method="post" onsubmit="return check()">
		<input type="hidden" name="replyStatus" value="${replyStatus}"/>
		<s:if test="id!=null">
		<input type="hidden" name="id" value="${id }"/>
		</s:if>
		<input type="hidden" name="tag" id="quality"/>
		<input type="hidden" name="replyTag" value="1"/>
			<table width="100%">
				<tr>
					<td class="title">内容：</td>
					<td>
						${content}
					</td>
				</tr>
				<tr>
					<td class="title">时间：</td>
					<td>
						${editTime }
					</td>
				</tr>
				<tr>
					<td class="title">姓名：</td>
					<td>
						${name }
					</td>
				</tr>
				<tr>
					<td class="title">来自：</td>
					<td>
						${comeFrom }
					</td>
				</tr>
				<tr>
					<td class="title">科类：</td>
					<td>
						${type}
					</td>
				</tr>
				<tr>
					<td class="title">回复：</td>
					<td>
						<textarea cols="100" id="content" style="width:100%;height:400px;" name="answer" rows="10">${answer }</textarea>
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						<input type="checkbox" id="tagselect" <s:if test="tag==1"> checked="checked"</s:if>/>发布到精华区
						<input type="submit" style="width:100px;" value="提交"  />
					</td>
				</tr>

			</table>

		</form>
	</div>
</body>
</html>
